package com.aimashi.railwaytoolmanagesystem.activity;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

	/**
     * ViewPager适配器
	 */
    public class MainPagerAdapter extends FragmentPagerAdapter {
        public List<Fragment> mListViews;

        public MainPagerAdapter(FragmentManager fm,List<Fragment> mListViews) {
        	super(fm);
            this.mListViews = mListViews;
        }
		
		@Override
		public Fragment getItem(int arg0) {
			return mListViews.get(arg0);
		}

		@Override
		public int getCount() {
			return mListViews.size();
		}
    }